From: Giuseppe Scrivano Date: Thu, 30 Oct 2014 09:59:30 +0000 (+0100) Subject: pull: Fix a used before initialization warning X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1066 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cb053ae0f6eb8a9e2285e018688b01fa8f0b5342;p=ostree.git pull: Fix a used before initialization warning src/libostree/ostree-repo-pull.c:1676:22: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Giuseppe Scrivano --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index e1ca4351..8391d9c4 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -1322,7 +1322,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, char **configured_branches = NULL; guint64 bytes_transferred; guint64 end_time; - OstreeRepoPullFlags flags; + OstreeRepoPullFlags flags = 0; const char *dir_to_pull = NULL; char **refs_to_fetch = NULL; gboolean is_mirror;